 
 <?
require_once "../add/TegGenerator.php";
require_once"../add/ClassList.php";
require_once "../include/global.php";
?>

 <?php 
 $conn = dbconn();
 ?>
 
 
 <?php

 Del_proj($_POST[del]);


 
?>
  <?php //mysql_close($conn); ?>

<?php

		function Del_proj($pi)
		{
			$query="DELETE FROM `projects` WHERE `id` = $pi";
			$res=mysql_query($query)or die("ошибка при удалении");
			return $res;
		}

?>
   <?php mysql_close($conn); ?>

  
  
